{include file="include:header" /}
<!-- 免费咨询 -->
<body>
    {include file="include:nav" /}
    <div class="inside-banner-wrap wrap1920">
    	<div class="wrap1200">
    		<img class="inside-banner" src="__PUBLICINDEX__/images/inside-banner_01.jpg" alt="律団elvtuan" />
    		<div class="ani-t ani-t01 wow fadeInUp animated" data-wow-duration="1.2s" data-wow-delay="0.2s" ></div>
    		<div class="ani-t ani-t02 wow fadeInUp animated" data-wow-duration="1.2s" data-wow-delay="0.7s" ></div>
    	</div>
    </div>
    <div class="wrap1920">
		<!-- 免费咨询 -->
		<div class="free-question">
			<dl class="question-kinds">
				<div class="wrap1200">
					<dt></dt>
					<dd>
						<a {empty name="$type" }class="current"{/empty}  href="#" onclick="grabble(1)" value=""  >全部</a>

						{volist  name="type_list" id="v"}
						<a {if condition="$type eq $v['consult_type_id']"}class="current"{/if} href="javascript:;" value="{$v['consult_type_id']}" onclick="grabble(1,{$v['consult_type_id']})">{$v['ct_name']}</a>
						{/volist}
					</dd>
				</div>
			</dl>
			<form action="" id="form-submit" method="get">
				<input type="hidden" name="type" value="{$type?$type:''}">
				<input type="hidden" name="sort" value="{$sort?$sort:''}">
				<input type="hidden" name="tag" value="{$tag?$tag:''}">
			</form>

			<!-- 问题列表 -->
			<div class="wrap1200">
				<div class="fl question-list-left">
					<div class="question-sort">
						<dl class="fl">
							<dt>排序：</dt>
							<dd>
								<a href="#" onclick="grabble(3)" {if condition="$sort eq ''"}class="current"{elseif condition="$sort eq 3"/}class="current"{/if}>默认</a>
								<a href="#" onclick="grabble(4)" {eq name="$sort" value="4"}class="current"{/eq}>收藏最多</a>
								<a href="#" onclick="grabble(5)" {eq name="$sort" value="5"}class="current"{/eq}>回答最多</a>
							</dd>
						</dl>
						<div class="question-search fr">
							<input type="text" placeholder='请输入关键词' value="{$tag?$tag:''}" name="tag_at" />
							<a href="javascript:;" onclick="grabble(6)">搜&nbsp;索</a>
						</div>
					</div>
					<div class="question-list">
					 {empty name="$list"}
						暂无咨询
					 {else/}
						{volist name="list" id="vo"}
						<div class="question-list-item current" >
							<div class="question-title">
								<div class="kind-name fl">{$vo['ct_name']}</div>
								<div class="fl main-t">
									<h4><a href="{:url('/question/detail',array('cid'=>$vo['consult_id']))}">{$vo['ct_title']}</a></h4>
									<span>{$vo['ct_addtime']}</span>
								</div>
								<ul class="counts fr">
									<li>
										<em>{$vo['ct_sum']}</em>
										<span>
											{if condition="$vo['collect'] egt 1"}
													 <i class="iconfont" style="background:#FFDA2A" >&#xe67e;</i>已收藏
											{else /}
													<i class="iconfont"  >&#xe67e;</i>收藏
											{/if}
										</span>
									</li>
									<li>
										<em>{$vo['ct_count']}</em>
										<span><i class="iconfont">&#xe6a8;</i> 回答</span>
									</li>
								</ul>
							</div>

							{notempty  name="vo['reply']"}
							<div class="answer-wrap">
								<div class="arrow"></div>
								<div class="answer-head">
									{empty name="vo['reply']['a_img']"}
									<img class="fl" src="__PUBLICINDEX__/images/user-02.png" alt="" />
									{else /}
									<img class="fl" src="{$vo['reply']['a_img']}" alt="" />
									{/empty}

									<p>{$vo['reply']['a_fullname']} &nbsp;&nbsp;官方律师
										<span class='fr'>发表于：{$vo['reply']['cr_addtims']}</span>
									</p>
								</div>
								<div class="main-answer">
									<p>{$vo['reply']['cr_details']}<a href="{:url('/question/detail',array('cid'=>$vo['consult_id']))}">查看详情 >></a></p>
								</div>
							</div>
							{/notempty}
						</div>
						{/volist}
					 {/empty}

					</div>
					<div class="page_wrap">
						{$page}
		            </div>
				</div>
				<!-- 热门问答 -->
				<div class="fr side-right">
					<div class="make-question">
						<h4>填写咨询信息</h4>
						<form action="">
							<dl>
								<dt>请选择咨询类别<i class="iconfont">&#xe8e5;</i></dt>
								<dd>
									{volist  name="type_list" id="v"}
										<a href="javascript:;" value="{$v['consult_type_id']}" >{$v['ct_name']}</a>
									{/volist}	
								</dd>
							</dl>
							<input type="text" name="consult_type_id" class='hide' value="" />
							<input type="text" name="ct_title" placeholder='输入咨询标题' />
							<textarea name="details" placeholder='您要咨询的详细内容' ></textarea>
							<a class="answer-sure" href="javascript:;">我要提问</a>
						</form>
					</div>
					<div class="side-gg">
						<a href="http://wpa.b.qq.com/cgi/wpa.php?ln=2&amp;uin=800817908" target="_blank"><img src="__PUBLICINDEX__/images/question/online-ask.png" alt="" /></a>
					</div>
				</div>
			</div>
		</div>
	</div>
    {include file="include:footer" /}
</body>
</html>
{include file="include:js" /}
<script>
	function  grabble(state,val){
		if(state == 1){
			val = val;
			$('[name="type"]').val(val);
		}else if(state == 6){
		    val = $('[name="tag_at"]').val();
		    $('[name="tag"]').val(val);
		}else{
			val = state;
			$('[name="sort"]').val(val);
		}
		$('#form-submit').submit();
	}
</script>


